package com.example.core

import android.app.Application
import android.content.Context

/**
 *
 * 作者： JairusTse
 * 日期： 2021/2/10
 */
class BaseApplication : Application() {

    companion object {
        private lateinit var  currentApplication: Context

        fun currentApplication(): Context {
            return currentApplication
        }
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        currentApplication = this
    }
}